
digit = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight']
def simple(n):
    pass
s = input("Enter the input string: ")
sh, sd, se = s.split()

h = digit.index(sh)
d = digit.index(sd)
e = digit.index(se)

result = h * 100 + d * 10 + e

if simple(result):
    print(result)
else:
    print("Wrong Input")
